package com.bootdo.app.interceptor;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
public class CosAppConfig extends WebMvcConfigurerAdapter {

	private final Logger logger = LoggerFactory.getLogger(this.getClass());

	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		logger.info("addInterceptors");
		registry.addInterceptor(new CosSecurityInterceptor()).addPathPatterns("/**");
		super.addInterceptors(registry);
	}
	

	
}
